package com.snail.feign.fallback;

import com.snail.feign.SysUserClient;
import com.snail.model.pojo.user.SysUser;
import com.snail.result.Result;
import org.springframework.stereotype.Component;

/**
 * @author Monica
 * @description
 * @date 2025/8/20 19:43
 */

@Component
public class SysUserClientFallback implements SysUserClient {

    @Override
    public Result<SysUser> getUserById(Long id) {
        // 当服务调用失败时，返回包含null的Result
        return Result.success(null);
    }
}

